import { request } from "@/utils/service"
// import { List } from '@/api/store/type'

/** 用户 */

/** 分页查询平台注册的用户 */
export function getUserApi(data) {
  return request<any>({
    url: "user/account/manager/page",
    method: "post",
    data
  })
}

/** 启用/停用账户 */
export function updateUserStateApi(data) {
  return request<any>({
    url: "user/account/manager/enable",
    method: "post",
    data
  })
}

// 账号id分页查询钱包交易明细
export function getUserMoneyApi(data) {
  return request<any>({
    url: "user/account/purse/getId",
    method: "post",
    data
  })
}


// 账号id分页查询钱包交易明细
export function getUserMoneyDetailApi(data) {
  return request<any>({
    url: "user/account/purse/pageId",
    method: "post",
    data
  })
}

// 查询所有反馈信息
export function getFeedbackApi(data) {
  return request<any>({
    url: "user/feedback/page",
    method: "post",
    data
  })
}


// 修改反馈信息
export function editFeedbackApi(data) {
  return request<any>({
    url: "user/feedback/pass",
    method: "post",
    data
  })
}

// 用户提现列表
export function getWithdrawListApi(data) {
  return request<any>({
    url: "user/account/purse/withdraw/page-admin",
    method: "post",
    data
  })
}


// 审核用户
export function auditWithdrawApi (data) {
  return request<any>({
    url: "user/account/purse/withdraw/examine",
    method: "post",
    data
  })
}
// 新增用户
export function addUserApi (data) {
  return request<any>({
    url: "user/account/manager/add",
    method: "post",
    data
  })
}

